package cn.app.android.sichuanxiaoke.com.xiaokeapp.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.app.android.sichuanxiaoke.com.xiaokeapp.R;

public class RechargeActivity extends AppCompatActivity {
    @BindView(R.id.tb)
    Toolbar tb;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recharge_new);
        ButterKnife.bind(this);
        initUI();
    }

    private void initUI() {
        setSupportActionBar(tb);
        tb.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        return super.onCreateOptionsMenu(menu);

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        return super.onOptionsItemSelected(item);
    }

    @OnClick({R.id.transfer_to_friends,R.id.transfer_to_admian,R.id.transfer_to_phone,R.id.transfer_to_bankcard,})
    public void OnClick(View view){

        switch (view.getId()){
            case R.id.transfer_to_friends:
                startActivity(new Intent(this,RechargeToFriendsActivity.class));
                break;
            case R.id.transfer_to_admian:
                startActivity(new Intent(this,RechargeToFriendsActivity.class));
                break;
            case R.id.transfer_to_phone:
                break;
            case R.id.transfer_to_bankcard:
                startActivity(new Intent(this,RechargeToBancardActivity.class));
                break;
        }

    }
}
